package btservice;

import java.util.Scanner;

public class Main {
    
    public static void main(String[] args) {
        
    	
        // Serve service forever, make new service when client disconnects
        BTService service = new BTService();
        Thread t1 = new Thread(service);
        t1.start();
        
        while(true) {
        	
            Scanner scan = new Scanner(System.in);
            System.out.println("Type Command: ");
            String newCommand = scan.next();
            if(newCommand.equals("oil"))
            {
            	service.diminishOil();
            	System.out.println("Oil Diminished");
            }else if(newCommand.equals("refill"))
            {
            	
            	System.out.println("Oil Refilled");
            }
        }
        
    }

}


